import request from '@/sheep/request';

const PayOrderApi = {
	// 获得支付订单
	getOrder: (id) => {
		return request({
			url: '/pay/order/get',
			method: 'GET',
			params: {
				id
			}
		});
	},
	// 提交支付订单
	submitOrder: (data) => {
		return request({
			url: '/pay/order/submit',
			method: 'POST',
			data
		});
	},
	//提交银行卡信息，获取验证信息
	goPay: (data) => {
		return request({
			url: '/pay/goPay',
			method: 'POST',
			data
		});
	},
	//提交银行卡验证信息
	twoPay: (data) => {
		return request({
			url: '/pay/twoPay',
			method: 'POST',
			data
		});
	},
};

export default PayOrderApi;